package ClientUtils

import (
	"github.com/gin-gonic/gin"
)

type Res struct {
	Code int         `json:"code"`
	Data interface{} `json:"data"`
	Note string      `json:"note"`
}

func ReturnMsg(ctx *gin.Context, code int, data interface{}, note string) {
	ctx.JSON(200, Res{
		Code: code,
		Data: data,
		Note: note,
	})
}
